package com.jike.springbootstarterdemo;


import com.jike.student.properties.KlassProperties;
import com.jike.student.properties.SchoolProperties;
import com.jike.student.properties.StudentProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SpringbootStarterDemoApplication implements CommandLineRunner {

	@Autowired
	private SchoolProperties schoolProperties;

	@Autowired
	private KlassProperties klassProperties;

	@Autowired
	private StudentProperties studentProperties;

	public static void main(String[] args) {
		SpringApplication.run(SpringbootStarterDemoApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		System.out.println(studentProperties);
		System.out.println(klassProperties);
		System.out.println(schoolProperties);
	}
}
